package com.example.myapplication.old.api;

import com.example.myapplication.old.entity.Joker;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;

public interface ApiService {
    @GET("users/{user}/repos")
    Call<ResponseBody> listRepos(@Path("user") String user);

    @GET("joke/list")
    Call<Joker> getJoke(@Query("num") int num);
}
